<div id = "wall-bg">
	<h2>Rememberance Wall</h2>
	<ul id = "wall">
		<?php
		if(!empty($latest_posts)){
			foreach( $latest_posts->result() as $post ){
				echo '<li><p>';
				echo '<span id="w-thumbs">';
				$current_img_path = $_SERVER['DOCUMENT_ROOT'].'/mlme2/assets/images'.$post->picture;
				$toResize = (file_exists($current_img_path) && !empty($post->picture)) ? base_url().'assets/images/'.$post->picture : base_url().'assets/images/default.png';
				$src = Image_helper::resize_photo($toResize, '25', '25'); 
		?>
				<img src="<?php echo $src;?>" alt="" />
		<?php
				echo '</span>';
				echo '<h3>';
				echo myuser_helper::getFullName($post->userid);
				echo '</h3>';
				echo '<p>';
				echo substr($post->message, 0, 134).'...';
				echo '</p>';
				echo '</p></li>';
			}//end foreach
		}//end if
		?>
	</ul>
</div>